package com.ruoyi.dp.service.impl;

import com.ruoyi.dp.domain.DpDangerousPoint;
import com.ruoyi.dp.mapper.DpDangerousPointMapper;
import com.ruoyi.dp.service.IDpDangerousPointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DpDangerousPointServiceImpl implements IDpDangerousPointService {
    @Autowired
    private DpDangerousPointMapper dpDangerousPointMapper;
    @Override
    public List<DpDangerousPoint> selectDpDangerousPointList() {
        return dpDangerousPointMapper.selectDpDangerousPointList();
    }

    @Override
    public DpDangerousPoint selectDpDangerousPointById(Long id) {
        return dpDangerousPointMapper.selectDpDangerousPointById(id);
    }

    @Override
    public int insertDpDangerousPoint(DpDangerousPoint dpDangerousPoint) {
        return dpDangerousPointMapper.insertDpDangerousPoint(dpDangerousPoint);
    }

    @Override
    public int updateDpDangerousPoint(DpDangerousPoint dpDangerousPoint) {
        return dpDangerousPointMapper.updateDpDangerousPoint(dpDangerousPoint);
    }

    @Override
    public int deleteDpDangerousPointByIds(Long[] ids) {
        return dpDangerousPointMapper.deleteDpDangerousPointByIds(ids);
    }

    @Override
    public int deleteDpDangerousPointById(Long id) {
        return dpDangerousPointMapper.deleteDpDangerousPointById(id);
    }
}
